package com.jiawa.train.gateWay.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "common.jwt")
@Data
public class JwtProperties {

//    管理端的密钥和token名称
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;
//    用户端的密钥和token名称
    private String userSecretKey;
    private long userTtl;
    private String userTokenName;
}
